import com.whc.dao.Impl.userImpl;
import com.whc.services.Impl.chaper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test1 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("resources.xml");
//        chaper chaper = (chaper) applicationContext.getBean("chap");
//        chaper.student();
        userImpl user1 = (userImpl) applicationContext.getBean("userdao");
        user1.use();


    }
}
